﻿using System;
using System.Data.Entity;
using System.Linq;
using ServiceHost.Migrations;

namespace ServiceHost.Model
{
    public class SafeRouteDataContext : DbContext
    {
        public SafeRouteDataContext()
            : base("SafeRoute")
        {
            Database.SetInitializer<SafeRouteDataContext>(new MigrateDatabaseToLatestVersion<SafeRouteDataContext, Configuration>());
        }

        public DbSet<DeviceCoordinate> DeviceCoordinates { get; set; }
    }
}